package com.walking.controller;
import	java.util.HashMap;
import java.util.Map;

import com.walking.annotation.TimeConsuming;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: $ 类（或接口）是
 * @Author: walking
 * @Date: $ 2019年12月31日
 */
@Controller
@TimeConsuming
@RequestMapping("/order")
public class OrderController {

    @RequestMapping("test")
    @ResponseBody
    public Map<String,Object> test(){
        Map<String,Object> map = new HashMap<String, Object> ();
        map.put("age","18");
        map.put("name","walking");
        return map;
    }

    @RequestMapping("create")
    @ResponseBody
    public Map<String,Object> create(String orderId){
        Map<String,Object> map = new HashMap<String, Object> ();
        map.put("orderId",orderId);
        map.put("userName","walking");
        map.put("orderPrice","120.00");
        map.put("userId","100101");
        return map;
    }
}
